package com.zlm.flume.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONException;

/**
 * @author Harbour
 * @date 2021-02-02 19:22
 */
public class MyJSONUtils {
    public static boolean validateJSON(String json) {
        try {
            JSON.parse(json);
            return true;
        } catch (JSONException e) {
            return false;
        }

    }
}
